import request from '@/utils/request'

export function listtsTaskpoint(query) {
  return request({
    url: '/tsTaskpoint/list',
    method: 'get',
    params: query
  })
}

export function createtsTaskpoint(data) {
  return request({
    url: '/tsTaskpoint/create',
    method: 'post',
    data
  })
}

export function readtsTaskpoint(data) {
  return request({
    url: '/tsTaskpoint/get/' + data.fpointno,
    method: 'get'
  })
}

export function deletetsTaskpoint(data) {
  return request({
    url: '/tsTaskpoint/delete/' + data.ftaskno +'/' + data.fpointno,
    method: 'delete'
  })
}
